import { get, post, put, del } from '@/js/api/dataSource'
export default {
	productionLine: {
		// 产线类型select
		findProductionLineTypeListAll () {
			return get({ url: 'archive/productionLineType/findProductionLineTypeListAll' })
		},
		// 产线select
		findProductionLineListAll () {
			return get({ url: 'archive/productionLine/findProductionLineListAll' })
		},
		// 产线select
		findListAll () {
			return get({ url: 'archive/productionLine/findListAll' })
		},
		// 产线列表查询
		findAllProductionLines () {
			return post({ url: 'archive/productionLine/pageQuery', responseComplete: true })
		},
		// 启用停用工厂
		updateEnable () {
			return put({ url: '/archive/productionLine/updateEnable', responseComplete: true })
		},
		getNextCode () {
			return get({ url: '/archive/productionLine/getNextCode' })
		},
		// 保存 新增修改
		saveOrUpdate () {
			return post({ url: '/archive/productionLine/saveOrUpdate', responseComplete: true })
		},
		findProductionLineDetailById () {
			return get({ url: '/archive/productionLine/findDetailByParam' })
		},
		// 批量删除工厂
		deleteMulity () {
			return del({ url: '/archive/productionLine/batchDelete', responseComplete: true })
		}
	}
}
